<!--<?php print <<<EOT
-->
<tr class="b"><td width="30%" height="30" class="bold">商品名称: </td>
<td><input name="atc_title" size="35" value="$atc[subject]"></td></tr>
<tr class="b"><td height="30" class="bold">系统分类: </td>
<td><select name="atc_cid" style="width:150px;">
$categpslt
</select><input name="atc_oldcid" type="hidden" value="$cid"></td></tr>
<tr class="b"><td height="30" class="bold">个人商品分类: </td>
<td><select name="atc_dirid" id="dirgpslt" style="width:150px;">
<option value="0">未分类</option>
$dirgpslt
</select>
<input type="button" id="dirbutton" value="管理" onclick="ShowDir()"><br />
<span id="dirspan" style="width:300;margin:5px 0px 0px 0px;z-index:100;display:none;">
<table cellspacing="0" cellpadding="3">
<tbody id="dirtbody">
<tr><td height="30">分类名称</td>
<td>顺序</td></tr>
<tr><td align="center" height="30"><input name="dirname" id="dirname" size="15"></td>
<td><input name="dirorder" id="dirorder" size="5">
<input type="button" value="添加" onclick="AddDir()"></td></tr>
<!--
EOT;
foreach($dirarray as $key => $value){print <<<EOT
-->
<tr id="dir{$key}"><td align="center" height="30"><input id="dirnames{$key}" size="15" value="{$value[name]}"></td>
<td><input id="dirorders{$key}" size="5" value="{$value[vieworder]}">
<a style="cursor:pointer" onclick="EditDir('{$key}')" onmouseover="this.style.textDecoration='underline';" onmouseout="this.style.textDecoration='none';">修改</a>
<a style="cursor:pointer" onclick="DeleteDir('{$key}')" onmouseover="this.style.textDecoration='underline';" onmouseout="this.style.textDecoration='none';">删除</a></td></tr>
<!--
EOT;
}print <<<EOT
-->
</tbody>
</table>
</span></td></tr>
<tr class="b"><td height="30" class="bold">表 情: </td>
<td><input type="radio" name="atc_iconid" value="0"$icon_0> 无
<input type="radio" name="atc_iconid" value="1"$icon_1>
<img src="$imgpath/emotion/1.gif">
<input type="radio" name="atc_iconid" value="2"$icon_2>
<img src="$imgpath/emotion/2.gif">
<input type="radio" name="atc_iconid" value="3"$icon_3>
<img src="$imgpath/emotion/3.gif">
<input type="radio" name="atc_iconid" value="4"$icon_4>
<img src="$imgpath/emotion/4.gif">
<input type="radio" name="atc_iconid" value="5"$icon_5>
<img src="$imgpath/emotion/5.gif">
<input type="radio" name="atc_iconid" value="6"$icon_6>
<img src="$imgpath/emotion/6.gif">
<input type="radio" name="atc_iconid" value="7"$icon_7>
<img src="$imgpath/emotion/7.gif"></td></tr>
<tr class="b"><td height="30" class="bold">关键字（Tag）: </td>
<td>
<span id="taglist"$tdisplay>
<!--
EOT;
foreach($tagdb as $value){print <<<EOT
-->
<a style="cursor:pointer" title="点击删除此Tag" onclick="DeleteTag(this,'$value')" style="padding-right:3px;">$value<input name="atc_tagdb[]" type="hidden" value="$value"></a>
<!--
EOT;
}print <<<EOT
-->
<br />
</span>
<input id="tagname" size="35" onkeydown="if(event.keyCode==13) {AddTag(GE('tagname').value);return false;}" value="">
<input type="button" value="添加Tag" onclick="AddTag(GE('tagname').value)"></td></tr>
<tr class="b"><td height="30" class="bold">新旧程度: </td>
<td><input type="radio" name="quality" value="new" $quality_new> 全新
<input type="radio" name="quality" value="secondhand" $quality_secondhand> 二手</td></tr>
<tr class="b"><td height="30" class="bold">商品价格: </td>
<td><input name="price" size="35" value="$atc[price]"></td></tr>
<tr class="b"><td height="30" class="bold">运费: </td>
<td><input type="radio" name="feemode" value="1" $feemode_1> 买家承担运费
<input type="radio" name="feemode" value="2" $feemode_2> 卖家承担运费<br />
平邮：<input name="maillfee" size="10" value="$atc[maillfee]"> 元
快递：<input name="expressfee" size="10" value="$atc[expressfee]"> 元
EMS：  <input name="emsfee" size="10" value="$atc[emsfee]"> 元</td></tr>
<tr class="b"><td height="30" class="bold">所在地: </td>
<td><script language="JavaScript" src="js/initcity.js"></script>
<select onchange="initcity();" name="province" id="province"></select>
<select name="city" id="city"></select>
<script>creatprovince('$atc[province]');initcity('$atc[city]');</script></td></tr>
<tr class="b"><td height="30" class="bold">付款方式: </td>
<td>支付宝: <input name="alipay" size="20" value="$atc[alipay]">
贝宝: <input name="paypal" size="20" value="$atc[paypal]">
快钱: <input name="pay99bill" size="20" value="$atc[pay99bill]"></td></tr>
<tr class="b"><td height="30" valign="top"><br /><b>内 容</b>: <br /><br />
评论设置: 
<select name="atc_allowreply">
<option value="1"$allowreply_1>允许</option>
<option value="0"$allowreply_0>不许</option>
</select><br /><br />
共享设置: 
<select name="atc_ifhide">
<option value="0"$ifhide_0>完全共享</option>
<option value="2"$ifhide_2>好友可见</option>
<option value="1"$ifhide_1>彻底隐藏</option>
</select></td>
<td><table cellspacing="0" cellpadding="3" width="100%">
<tr class="b"><td height="30">
<!--
EOT;
if($_GROUP['htmlcode']){print <<<EOT
-->
<input type="checkbox" name="atc_htmlcode" id="atc_html" value="1" $html_CK> 使用html代码
<!--
EOT;
}print <<<EOT
-->
<input type="checkbox" name="atc_ifsign" value="1" $ifsign_CK> 使用签名
<input type="checkbox" name="atc_autourl" value="1" CHECKED> 自动分析url<br />
<!--
EOT;
include PrintEot('wysiwyg');print <<<EOT
-->
<span id="showmsg" style="color:red;margin-top:5px;padding:6px;display:none;"></span>
<span id="showupload"></span>
<!--
EOT;
foreach($attachdb as $value){
!$value[desc] && $value[desc] = '无';print <<<EOT
-->
<span id="delete$value[aid]"><br /><input name="attachdb[]" type="hidden" value="$value[aid]" />
描述：<span id="attdesc$value[aid]">$value[desc]</span>&nbsp;
附件：<span id="attname$value[aid]"><a href="$attachpath/$value[attachurl]" target="_blank"><font color="red"><b>$value[name]</b></font></a>&nbsp;($value[size]K)&nbsp;
<a style="cursor:pointer" onclick="DeleteFile('$value[aid]')">[删除]</a></span> &nbsp; &nbsp;
<a style="cursor:pointer" onclick="addattach('$value[aid]')"><b>添加到帖子中</b></a></span>
<!--
EOT;
}if($db_allowupload && $_GROUP[allowupload]){
$db_attachnum = (int)$db_attachnum;print <<<EOT
-->
<br /><br />附件最大： $db_uploadmaxsize (K)
<b>有效文件类型： $db_uploadfiletype</b> [<a style="cursor:pointer" onclick="AddFileInput()"><b>+</b></a> <a style="cursor:pointer" onclick="DelFileInput()"><b>-</b></a>]<br />
<span id="fileinput"><span id="delfileinput1"><br />描述： <input name="atc_desc1" id="atc_desc1" size="25" /> &nbsp;
附件： <span id="attachtml1"><input type="file" name="atc_attachment1" id="atc_attachment1" /></span>
<input type="button" value="上传" onclick="UploadFile('1')"></span></span>
<script language="JavaScript">
var i = 1;
function AddFileInput(){
	if (i < $db_attachnum) {
		i++;
		GE('fileinput').innerHTML = '<span id="delfileinput' + i + '"><br />描述： <input name="atc_desc' + i + '" id="atc_desc' + i + '" size="25" /> &nbsp; 附件： <span id="attachtml' + i + '"><input type="file" name="atc_attachment' + i + '" id="atc_attachment' + i + '" /></span> <input type="button" value="上传" onclick="UploadFile(\'' + i + '\')"></span>' + GE('fileinput').innerHTML;
	}
}
function DelFileInput(){
	if (i > 1) {
		GE('delfileinput' + i).style.display = 'none';
		i--;
	}
}
</script>
<!--
EOT;
}print <<<EOT
-->
</td></tr>
</table>
</td></tr>
<!--
EOT;
?>